import uvicorn
from fastapi import FastAPI

from api.msg.urls import msg
from tortoise.contrib.fastapi import register_tortoise

from settings import TORTOISE_ORM

app = FastAPI()

app.include_router(msg)

register_tortoise(app=app, config=TORTOISE_ORM)

if __name__ == "__main__":
    uvicorn.run("main:app", host="127.0.0.1", port=8080, reload=True)
